home *** CD-ROM | disk | FTP | other *** search
/ SPACE 1 / SPACE - Library 1 - Volume 1.iso / program / 356 / clipmod / clip.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-02-02  |  1.8 KB  |  51 lines

  1. /****************************************************************************\
  2. |*        CLIP.H                                                                *|
  3. |*--------------------------------------------------------------------------*|
  4. |*    by Russ Wetmore                                                            *|
  5. |*        Last revision:    11/04/86 15:06:14                                    *|
  6. \****************************************************************************/
  7. /*------------------------------*\
  8. |*    portability concerns        *|
  9. \*------------------------------*/
  10. #ifdef ALCYON
  11. typedef char            BYTE, UBYTE;    /* Alcyon used to be pretty dumb...    */
  12. typedef short            WORD, VOID, BOOLEAN;
  13. typedef unsigned int    UWORD;
  14. typedef long            LONG, ULONG;    /* ...about unsigned anything        */
  15. #endif
  16.  
  17. #ifdef MEGAMAX
  18. typedef char            BYTE;
  19. typedef unsigned char    UBYTE;
  20. typedef int                WORD, VOID, BOOLEAN;
  21. typedef unsigned int    UWORD;
  22. typedef long            LONG;
  23. typedef unsigned long    ULONG;
  24. #endif
  25.  
  26. #define REG        register
  27. #define IMPORT    extern                    /* Variables imported to a module    */
  28. #define FORWARD    extern                    /* Forward reference declarations    */
  29. #define GLOBAL    /**/                    /* Variables are default global        */
  30. #define LOCAL    static                    /* Variables local to a module        */
  31.     
  32. /*------------------------------*\
  33. |*    definitions                    *|
  34. \*------------------------------*/
  35. typedef struct {
  36.     LONG    size;                        /* Size of present clipboard        */
  37.     BYTE    *location;                    /* Pointer to the data itself        */
  38.     WORD    dirty;                        /* Boolean says "data has changed"    */
  39.     WORD    where;                        /* Where clipboard data is now        */
  40.     BYTE    filename[16];                /* Name of clipboard disk file        */
  41. } clipInfo;
  42.  
  43. IMPORT    WORD            clipboard();
  44. IMPORT    WORD            InfoClip();
  45. #define UnloadClip()    clipboard(1)
  46. #define LoadClip()        clipboard(2)
  47. #define ZeroClip()        (VOID)clipboard(3)
  48. #define PutClip(a,b)    clipboard(4,a,b)
  49. #define GetClip(a,b,c)    clipboard(5,a,b,c)
  50. #define InitClip()        clipboard(6)
  51.